package ebcs.database.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ebcs.database.bean.BsGroupInfor;
import ebcs.database.bean.BsGroupInforExample;
import ebcs.database.bean.BsProTeamInforExample;
import ebcs.database.bean.BsUserNeedRel;
import ebcs.database.mybatis.dao.BsGroupInforMapper;
import ebcs.database.mybatis.dao.BsProTeamInforMapper;
import ebcs.database.service.BsGroupInforServiceImp;
import ebcs.database.service.BsProTeamServiceImp;
import ebcs.database.service.BsUserNeedServiceImp;

@Service
public class BsGroupInforServiceImpl implements BsGroupInforServiceImp
{
	@Autowired
	private BsGroupInforMapper dao;

	@Override
	public List<BsGroupInfor> searchGroupList() {
		BsGroupInforExample example = new BsGroupInforExample();
		List<BsGroupInfor> list = this.dao.selectByExample(example);
		return list;
	}

	@Override
	public List<BsGroupInfor> selectGroupDetail(BsGroupInfor group) {
		List<BsGroupInfor> list = this.dao.selectGroupDetail(group);
		return list;
	}

	@Override
	public List<BsGroupInfor> selectGroupByGroupName(String groupName) {
		// TODO Auto-generated method stub
		List<BsGroupInfor> list = this.dao.selectGroupByGroupName(groupName);
		return list;
	}

	@Override
	public int updateGroupByGroupNo(BsGroupInfor group) {
		// TODO Auto-generated method stub
		return this.dao.updateGroupByGroupNo(group);
	}

	@Override
	public int deleteGroupByGroupNo(String proGroupNo) {
		// TODO Auto-generated method stub
		return this.dao.deleteGroupByGroupNo(proGroupNo);
	}

	@Override
	public String selectGroupMaxRouId() {
		// TODO Auto-generated method stub
		return this.dao.selectGroupMaxRouId();
	}

	@Override
	public int insertGroupInfor(BsGroupInfor group) {
		// TODO Auto-generated method stub
		
		return this.dao.insert(group);
	}

	@Override
	public List<BsGroupInfor> selectGroupOpenid(String groupNo) {
		return dao.selectGroupOpenid(groupNo);
	}

	@Override
	public List<BsGroupInfor> selectGroupByUserRouid(String rouid) {
		return this.dao.selectGroupByUserRouid(rouid);
	}

	@Override
	public List<BsGroupInfor> selectGroupByProTeamNo(String proTeamNo) {
		return this.dao.selectGroupByProTeamNo(proTeamNo);
	}


  
 
}
